package com.se.domain.request.param;

import lombok.Data;
import org.springframework.validation.annotation.Validated;


import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class CreateActParam {
    @NotNull
    @Size(min = 1, max = 3)
    protected List<Long> catIds;
    @NotBlank
    protected String title;
    @NotBlank
    protected String info;
    @NotBlank
    protected String place;
    @NotBlank
    protected String startTime;
    @NotBlank
    protected String endTime;
    protected String applyTime;
    protected String applyEndTime;
    @NotNull
    @Min(value = -1)
    protected Integer size;
    @NotNull
    @Valid
    //qn数组
    protected List<QParam> qn;

    String imgIds = "";
}
